<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/usertemplate.xhtml">
        <ui:define name="title">
            <h:outputText value="List Course"></h:outputText>
        </ui:define>
        <ui:define name="leftcontent">
                <div class="pad_left1">
                    <h2 class="pad_bot1">Supportive Learning Login</h2>
                    <br/>
                <h:form id="ContactForm">
                    <div>
                        <div class="wrapper">
                            <strong style="display: inline-block;width: 100px">Name:</strong>
                                <h:inputText value="#{studentsController.selected.userName}" required="true" requiredMessage="#{bundle.CreateStaffRequiredMessage_userName}"   
                                             id="username" label="username" style="width: 350px"/>
                        </div>
                        <div class="wrapper">
                            <strong style="display: inline-block;width: 100px">Password:</strong>
                                <h:inputSecret value="#{studentsController.selected.password}" title="#{bundle.CreateStaffTitle_password}" requiredMessage="#{bundle.CreateStaffRequiredMessage_password}"   
                                       id="password" required="true" label="password" style="width: 350px"/>
                        </div>
                        <div class="wrapper" style="width: 335px">
                            <div>
                                 <h:commandLink id="loginButton" class="button marg_left1" action="#{studentsController.checkLoginForStudent()}"><span><span>Login</span></span></h:commandLink>
                        <a href="#" class="button" onClick="document.getElementById('ContactForm').reset()"><span><span>Clear</span></span></a>
                            </div>
                        </div>
                       
                    </div>
                </h:form>
                </div>
        </ui:define>
        <ui:define name="rightcontent">
            
        </ui:define>    
    </ui:composition>
</html>
